enum Rotation { Left, Right }  
fn rotate_node(node: &mut TreeNode, dir: Rotation) { /* TODO */ }  
#[test] fn test_rotation() { /* 检查高度平衡 */ }  